package fun.linze.wallpaperwebsite.service;

import fun.linze.wallpaperwebsite.dao.wallpaper.Tags;
import fun.linze.wallpaperwebsite.domain.TWallpaperTag;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author wangy
* @description 针对表【t_wallpaper_tag(壁纸与标签的关联表)】的数据库操作Service
* @createDate 2025-06-29 10:20:46
*/
public interface TWallpaperTagService extends IService<TWallpaperTag> {

    /**
     * 根据壁纸ID获取所有关联的标签ID
     *
     * @param wallpaperId 壁纸ID
     * @return 标签ID列表
     */
    List<Integer> getTagIdsByWallpaperId(Long wallpaperId);

    /**
     * 根据标签ID获取所有关联的壁纸ID
     *
     * @param tagId 标签ID
     * @return 壁纸ID列表
     */
    List<Long> getWallpaperIdsByTagId(Integer tagId);
}
